package top.yuhaitao.cloud.feign;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import top.yuhaitao.config.FeignConfig2;

@Configuration
@FeignClient(name = "feignConfig2", url = "http://localhost:8761/", configuration = FeignConfig2.class)
public interface UserFeignClient2 {

	@RequestMapping(value = "/eureka/apps/{serviceName}")
	public String findServiceInfoFromEurekaByServiceName(@PathVariable("serviceName") String serviceName);

}
